﻿<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.evolutility.com" title="送货单"  icon="cube.gif" description="">
  <data dbtable="MRP_DeliveryBill" splogin="asp.net membership" dbcolumnpk="ID" readOnlyCondition="Status,!=,1"  sppaging="EvoSP_PagedItem @SQLselect, @SQLtable, @SQLfrom, @SQLwhere, @SQLorderby, @SQLpk, @pageid, @pagesize" />
  <panel userid="1" ppos="1" label="送货单" width="100">
    <field id="1137" type="text" typeid="5" label="送货单号" dbcolumn="DeliveryCode" dbcolumnread="DeliveryCode" maxlength="0" readonly="0" required="1" optional="" fpos="70" search="1" searchadv="1" searchlist="1" height="1" width="25" />
    <field id="131" type="lov" typeid="5" label="客户" dbcolumn="CustomerID" dbcolumnread="CompanyName" dependency="OrderID_Detail0"
           dbtablelov="MRP_Customer" dbcolumnreadlov="CompanyName" maxlength="0" readonly="0" required="1" optional="" fpos="30" search="0" searchadv="1" searchlist="1" height="1" width="55" />
    <field id="133" type="date" typeid="17" label="送货时间" format="{0:d}" dbcolumn="DeliveryDate" defaultvalue="_now" dbcolumnread="DeliveryDate" maxlength="4" readonly="0" required="1" optional="" fpos="30" search="1" searchadv="1" searchlist="1" height="1" width="20" />
    <field id="1137" type="text" typeid="5" label="送货地址" dbcolumn="Address" dbcolumnread="Address" maxlength="0" readonly="0" required="1" optional="" fpos="70" search="1" searchadv="1" searchlist="1" height="1" width="80" />  
   <field id="139" type="text" typeid="6" label="送货人" dbcolumn="DriverName" dbcolumnread="DriverName" maxlength="10" readonly="0" required="" optional="" fpos="90" search="1" searchadv="1" searchlist="" height="1" width="10" />
   <field id="134" type="lov" typeid="5" cssclass="hidden" label="状态" defaultvalue="1" dbcolumn="Status" dbcolumnread="OrderStatus"
 dbtablelov="View_Order_Status_List" dbcolumnreadlov="DisplayText" maxlength="0" readonly="1" required="0" optional="" fpos="30" search="0" searchadv="1" searchlist="1" height="1" width="10" />
    <field id="46" type="textmultiline" typeid="6" label="描述" dbcolumn="Notes" dbcolumnread="Notes" maxlength="256" readonly="0" required="" optional="" fpos="110" search="0" searchadv="1" searchlist="" height="1" width="100" />
    <field id="1691" type="command" typeid="99" label="操作" dbcolumn="发布"  dependency="Status,=,1" dbcolumnread="cmd1" maxlength="8" readonly="1" required="" optional="" fpos="120" search="1" searchadv="1" searchlist="1" height="1" width="10" />
  </panel>
  <panel-details panelid="1" dbtabledetails="MRP_DeliveryItem" dbcolumndetails="BillID" label="送货单详情" jsnew="MyMRP.newDeliveryItem()">
    <field id="146" panelid="1" type="lov" typeid="5" label="订单号" dbcolumn="OrderID" dependency="2" dbcolumnread="OrderID2" dbcolumnreadlov="OrderCode" dbwherelov="(MRP_Order.Status=2 Or MRP_Order.Status=5)" dbtablelov="MRP_Order" maxlength="2" readonly="0" required="1" optional="" fpos="20" search="1" searchadv="1" searchlist="1" height="1" width="20" />
    <field panelid="1" id="187" type="lov" typeid="5" label="产品代码（名称、规格等等）" dbwherelov="View_MaterialNameAndCode.MType=5" dbcolumn="ProductID" dbcolumnread="ProductName"
 dbtablelov="View_MaterialNameAndCode" dbcolumnreadlov="NameAndCode" maxlength="0" readonly="0" required="1" optional="" fpos="30" search="0" searchadv="1" searchlist="1" height="1" width="40" />
    <field id="147" panelid="1" type="integer" typeid="10" label="数量" dbcolumn="SendOutQuantity" dbcolumnread="SendOutQuantity" maxlength="8" readonly="0" required="1" optional="" fpos="30" search="1" searchadv="1" searchlist="1" height="1" width="20" />
    <field id="148" panelid="1" type="decimal" typeid="10" label="价格（可选）" dbcolumn="Price" dbcolumnread="Price" maxlength="18" readonly="0" required="0" optional="" fpos="30" search="1" searchadv="1" searchlist="1" height="1" width="20" />
  </panel-details>
</form>
